#include <iostream>

using namespace std;

typedef long long LL;

int gcd(int a, int b)
{
	return b ? gcd(b, a % b) : a;
}

int lcm(int n, int m)
{
	return n * m / gcd(n, m);
}

int main()
{
	LL t = 1;
	LL n;
	cin >> n;
	
	for (int i = 2; i <= 10; i ++ ) t = lcm(t, i);
	
//	cout << t << endl;
	
	cout << n / t << endl;
	
	return 0;
}